import request from '@/utils/request'

// 列表查询
export function getTableList(query) {
  return request({
    url: '/archive/onlineReception/getOnlineReceptionList',
    method: 'post',
    params: query
  })
}

// 移交单详情
export function getOnlineReceptionById(query) {
  return request({
    url: '/archive/onlineReception/getOnlineReceptionById',
    method: 'get',
    params: query
  })
}

// 发起审批
export function fqjssp(query) {
  return request({
    url: '/archive/onlineReception/fqjssp',
    method: 'post',
    params: query
  })
}

// 退回
export function killOnlineReceive(id) {
  return request({
    url: '/archive/onlineReception/sendBackOnline/' + id,
    method: 'post'
  })
}

// 发起四性检测
export function saveArchive(query) {
  return request({
    url: '/archive/onlineReception/saveArchive',
    method: 'get',
    params: query
  })
}
